import { PageForm } from "@/api/interface";

export namespace Auth {
    export namespace Params {
        export interface Select extends PageForm {
            wechatName?: string
        }

        export interface Create {
            wechatName: string
            qxtAccount: string
            qxtPassword: string
            mobile: string
            roleId: number
        }

        export interface BusinessStaff extends PageForm {
            name?: string
            module: string
            entity: string
            code: string
        }
    }

    export namespace Res {
        export interface StaffAuth {
            code: string
            createAt: string
            createBy: {
                id: number
                name: string
            }
            id: number
            name: string
            status: string
        }

        export interface Employee {
            bossId: number
            qxtCode: string
            roleName: string
            sysUser: {
                id: number
                name: string
                status: 'ENABLE' | 'DISABLE'
                mobile: string
                portrait?: string
            }
            wechatName: string
        }

        export interface StaffList {
            count: string
            data: Employee[]
        }
        export interface Customer {
          code: string
          createAt: string
          gender: string
          id: number
          mobile: string
          name: string
          status: "ENABLE" | "DISABLE"
          updateAt: string
          portrait?: string
        }
        export interface CustomerList {
            count: number
            data: Customer[]
        }
    }
}
